FROM harbor.mingya.com.cn/centos7/jdk1.8wkhtmltox:latest
VOLUME /tmp
RUN mkdir -p /data/agent
ADD agent/ /data/agent
ADD candy-channel-1.0.0-SNAPSHOT.jar /
ENV OTHER_OPTS="-Dloader.path=/home/libs"
ENV APPNAME="candy-channel"
ENV LANG en_US.UTF-8
ENV profile=test
ENV jarname candy-channel-1.0.0-SNAPSHOT.jar
ENV JAVA_OPTS=" \
-Djava.security.egd=file:/dev/./urandom \
"
EXPOSE 28300
#ENV OTHER_OPTS=" \
#-Dloader.path=/home/libs \
#"

ENTRYPOINT exec java $JAVA_OPTS $OTHER_OPTS -javaagent:/data/agent/skywalking-agent.jar -Dskywalking.agent.service_name=$APPNAME -Dskywalking.collector.backend_service=192.168.28.225:11800 -Dspring.profiles.active=$profile -jar /$jarname
